import request from './request'

export function queryCalendar(data: string) {
  return request({
    url: '/calendar/query/one?dateTime=' + data,
    method: 'get',
  })
}

export function addCommemorationDay(data: any) {
  return request({
    url: '/calendar/add/commemoration',
    method: 'post',
    data: data,
  })
}

export function getCommemorationDay(data: string, type: string) {
  return request({
    url: '/calendar/get/commemoration?dateTime=' + data + '&type=' + type,
    method: 'get',
  })
}

export function insertEveryDay(data: any) {
  return request({
    url: '/everyDay/write/insert',
    method: 'post',
    data: data,
  })
}

export function getEveryDay() {
  return request({
    url: '/everyDay/write/query',
    method: 'get',
  })
}
